﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Web.Views.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <script type="text/javascript" src="Search.js"></script>
 <style type="text/css" media="screen">
        body
        {
            font: 11px arial;
        }
        .suggest_link
        {
            background-color: #FFFFFF;
            padding: 2px 6px 2px 6px;
        }
        .suggest_link_over
        {
            background-color: #E8F2FE;
            padding: 2px 6px 2px 6px;
        }
        #search_suggest
        {
            position: absolute;
            background-color: #FFFFFF;
            text-align: left;
            border: 1px solid #000000;
        }
    </style>
</head>
<body>
    <div style="width: 500px;">
        <form id="frmSearch" runat="server">
        <input type="text" id="txtSearch" name="txtSearch" alt="Search Criteria" onkeyup="searchSuggest();" autocomplete="off" />
        <asp:Button ID="cmdSearch" runat="server" Text="Search" 
            UseSubmitBehavior="False" /><br />
            <div id="search_suggest">
            </div>
            
            
<img id="imgVerify" src="Controls/VerifyCode.aspx?" alt="看不清？点击更换" onclick="this.src=this.src+'?'" />
        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
            DataSourceID="ObjectDataSource1" Height="50px" Width="125px">
            <Fields>
                <asp:BoundField DataField="AgentID" HeaderText="AgentID" 
                    SortExpression="AgentID" />
                <asp:BoundField DataField="LoginName" HeaderText="LoginName" 
                    SortExpression="LoginName" />
                <asp:BoundField DataField="Password" HeaderText="Password" 
                    SortExpression="Password" />
                <asp:BoundField DataField="AgentName" HeaderText="AgentName" 
                    SortExpression="AgentName" />
                <asp:BoundField DataField="Linkman" HeaderText="Linkman" 
                    SortExpression="Linkman" />
                <asp:BoundField DataField="Address" HeaderText="Address" 
                    SortExpression="Address" />
                <asp:BoundField DataField="Nearby" HeaderText="Nearby" 
                    SortExpression="Nearby" />
                <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
                <asp:BoundField DataField="Telphone" HeaderText="Telphone" 
                    SortExpression="Telphone" />
                <asp:BoundField DataField="WorkHours" HeaderText="WorkHours" 
                    SortExpression="WorkHours" />
                <asp:BoundField DataField="WorkQQ" HeaderText="WorkQQ" 
                    SortExpression="WorkQQ" />
                <asp:BoundField DataField="AlipayAccount" HeaderText="AlipayAccount" 
                    SortExpression="AlipayAccount" />
                <asp:BoundField DataField="CreateOn" HeaderText="CreateOn" 
                    SortExpression="CreateOn" />
            </Fields>
        </asp:DetailsView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            
            SelectCommand="select DISTINCT top 30 AreaID,b.Text FROM TT_News a left join Area b on a.AreaID = b.ID ">
        </asp:SqlDataSource>
        <asp:GridView ID="GridView1" runat="server" onrowcommand="GridView1_RowCommand">
        </asp:GridView>
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
            >
            <asp:ListItem Value="1">deee</asp:ListItem>
             <asp:ListItem Value="2">d</asp:ListItem>
        </asp:DropDownList>
        </form>
    </div>

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetListByArea" 
        TypeName="Easydp.Controllers.AgentController">
        <SelectParameters>
            <asp:QueryStringParameter Name="area" QueryStringField="area" 
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>

</body>
</html>
